/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/27 下午8:47
 * LastModified: 2020/03/27 20:47:27
 */

package com.qolome.knowledge.design.pattern.observer.demo.gper;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月27日 20:47:54
 */
public class Test {

    public static void main(String[] args) {
        Gper gper = Gper.getInstance();
        Teacher ginger = new Teacher("姜老师");
        Teacher liu = new Teacher("刘老师");
        gper.addObserver(ginger);
        gper.addObserver(liu);
        Question question = new Question();
        question.setStudentName("江同学");
        question.setContent("如何赚钱");
        gper.pulishQuestion(question);
    }
}
